#ifndef TASKCTRL_H_
#define TASKCTRL_H_

#define WATCH_FLG_NEW        0
#define WATCH_FLG_CONTINUE   1

#define WATCH_RET_ERROR   0
#define WATCH_RET_END     1
#define WATCH_RET_NOEND   2

#define WATCH_TYPE_END    (1)
#define WATCH_TYPE_KILLED (2)

typedef struct _TASK_WATCH_INFO
{
	int  type;
	int  taskId;
	int  flag;
}TASKWATCHINFO, *PTASKWATCHINFO;

extern void taskctrl_init();
extern int  taskctrl_watch(PTASKWATCHINFO, int);
extern void taskctrl_update();
extern int  taskctrl_run(int, char*);
extern void taskctrl_release();

#endif /* TASKCTRL_H_ */
